package randomwalk;

import musictrackrecommendation.Utils;

/**
 * @author  user
 */
public class PreferencesVector {
    /**
	 * @uml.property  name="users"
	 */
    private double[] users;
    /**
	 * @uml.property  name="tracks"
	 */
    private double[] tracks;
    /**
	 * @uml.property  name="tags"
	 */
    private double[] tags;
    
    public PreferencesVector(double[] users, double[] tracks, double[] tags) {
        this.users = users;
        this.tracks = tracks;
        this.tags = tags;
        normalize();
    }
    
    public void normalize() {
    	Utils.normalizeVector(users, 0.5);
    	Utils.normalizeVector(tracks, 0.5);
    }
    

    /**
	 * @return  the users
	 * @uml.property  name="users"
	 */
    public double[] getUsers() {
        return users;
    }

    /**
	 * @param users  the users to set
	 * @uml.property  name="users"
	 */
    public void setUsers(double[] users) {
        this.users = users;
    }

    /**
	 * @return  the tracks
	 * @uml.property  name="tracks"
	 */
    public double[] getTracks() {
        return tracks;
    }

    /**
	 * @param tracks  the tracks to set
	 * @uml.property  name="tracks"
	 */
    public void setTracks(double[] tracks) {
        this.tracks = tracks;
    }

    /**
	 * @return  the tags
	 * @uml.property  name="tags"
	 */
    public double[] getTags() {
        return tags;
    }

    /**
	 * @param tags  the tags to set
	 * @uml.property  name="tags"
	 */
    public void setTags(double[] tags) {
        this.tags = tags;
    }
}
